<?php
/**
 * 主页
 * Created by PhpStorm.
 * User: yui
 * Date: 2017/4/9
 * Time: 12:06
 */

namespace api\controllers;
use common\controllers\ApiCommonCtrl;

class HomeController extends ApiCommonCtrl
{

    public function actionShowInfo()
    {
        $data = [];
        $data['morning_schedule'] = OC['morning_schedule'];
        $data['afternoon_schedule'] = OC['afternoon_schedule'];
        $data['work_cycle'] = OC['work_cycle'];

        return $this->asJson(['code'=>0,'msg'=>'请求成功','data'=>$data]);
    }

    /**
     * 主页
     */
    public function actionIndex()
    {
        echo 'api home index';
    }

}